import React from 'react'

export default function App() {
  return (
    <>
      <div>a4_函数式组件的语法</div>
      <Child name='123' cd={()=>{return '123'}}/>
    </>
    

  )
}
interface IProps{
  name:string,
  cd:()=>string,
  count?:number
}
function Child(props:IProps){
  return <h2>ChildChildChild-----{props.name}</h2>
}
